//
//  UIViewController+Tools.m
//  MoodDiary
//
//  Created by rimi on 16/7/11.
//  Copyright © 2016年 cym. All rights reserved.
//

#import "UIViewController+Tools.h"

@implementation UIViewController (Tools)
- (void)getAlertController:(NSString *)title error:(NSString *)error {
    UIAlertController *alert = [UIAlertController alertControllerWithTitle:title message:error preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *action = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleCancel handler:nil];
    [alert addAction:action];
    [self presentViewController:alert animated:true completion:nil];
}

@end
